/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cem.cemweb.person_module.objects;

/**
 *
 * @author soloink
 */
public class Contacts implements java.io.Serializable{

    public Contacts(){}
    
 
    
    /* worker methods */
    static String realEmailAddress(String e){
        /** We are going to return a real email address or nothing. 
         * A reall email address consists of an identifier followed by 
         * an '@' and the domain which can consist of a single server name
         * or domain name.
         
         */
        if(e.length() < 4){return " ";}
        if(e.indexOf("@") != -1){    return e;  }
        return "N/A";
    }
    @Override
    public String toString(){
     return "id: " + getId() + ",DT Phone: "+getDt_phone()+ ",ET Phone: " 
	+ getEt_phone() + ",Employer: "+getEmployer()+",Wk Phone: "+getWk_phone()+",Cell Phone: " 
	+ getMobile_phone() + ",Email: " + getEmail() + ",Pager: " + getPager();    }
    /** private */
    private Long id;
    private String dt_phone= new String("555-555-5555");
    private String et_phone= getDt_phone();
    private String Employer= new String("N/A");
    private String wk_phone= getDt_phone();
    private String mobile_phone= getDt_phone();
    private String email=getEmployer();
    private String pager=getDt_phone();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDt_phone() {
        return dt_phone;
    }

    public void setDt_phone(String dt_phone) {
        this.dt_phone = dt_phone;
    }

    public String getEt_phone() {
        return et_phone;
    }

    public void setEt_phone(String et_phone) {
        this.et_phone = et_phone;
    }

    public String getEmployer() {
        return Employer;
    }

    public void setEmployer(String Employer) {
        this.Employer = Employer;
    }

    public String getWk_phone() {
        return wk_phone;
    }

    public void setWk_phone(String wk_phone) {
        this.wk_phone = wk_phone;
    }

    public String getMobile_phone() {
        return mobile_phone;
    }

    public void setMobile_phone(String mobile_phone) {
        this.mobile_phone = mobile_phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPager() {
        return pager;
    }

    public void setPager(String pager) {
        this.pager = pager;
    }
    //private boolean hasChanged=false;
}
